<?xml version="1.0" encoding="ISO-8859-1"?>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Person Form Page</title>
</head>

<body>
	<form action="" method="post">
		<table>
			<tr>
				<td>First name:</td>
				<td><input type="text" name="name.firstName" /></td>
			</tr>
			<tr>
				<td>Last name:</td>
				<td><input type="text" name="name.lastName" />
				</td>
			</tr>
			<tr>
				<td>Birth date (dd-MM-yyyy):</td>
				<td><input type="text" name="bornOn" /></td>
			</tr>
			<tr>
				<td>Favourite Programming Language:</td>

				<td><select name="programmingLanguage">
						<c:forEach var="lang" items="${languages}">
							<option value="${lang}">${lang.name}</option>
						</c:forEach>
				</select>
				</td>
			</tr>
			<tr>
				<td />
				<td><input type="submit" value="Confirm" /></td>
			</tr>
		</table>
	</form>

</body>
</html>